package com.eshop.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("商品实体类")
public class Good {
    @ApiModelProperty(value = "商品id")
    private int id;

    @ApiModelProperty("商品名")
//        @JsonProperty("gName")
    private String gName;

    @ApiModelProperty(value = "商品价格")
//        @JsonProperty("gPrice")
    private int gPrice;

    @ApiModelProperty(value = "库存")
//        @JsonProperty("gCount")
    private int gCount;

    @ApiModelProperty(value = "冻结状态")
//        @JsonProperty("gName")
    private int gIsFreeze;

    @ApiModelProperty("商品描述")
//        @JsonProperty("gDesc")
    private String gDesc;

    @ApiModelProperty("一级分类")
//        @JsonProperty("gSort1")
    private String gSort1;

    @ApiModelProperty("二级分类")
//        @JsonProperty("gSort2")
    private String gSort2;

    @ApiModelProperty("商品图片url")
//        @JsonProperty("gImgUrl")
    private String gImgUrl;

    @ApiModelProperty(value = "售出状态")
//        @JsonProperty("gIsSell")
    private int gIsSell;

}
